﻿using System.Web;
using System.Web.UI;

namespace YAF.Classes.Core
{
    public class BaseUserControl : UserControl
    {
        public YafContext PageContext
        {
            get
            {
                return YafContext.Current;

            }
        }

        public string HtmlEncode(object data)
        {
            return HttpContext.Current.Server.HtmlEncode(data.ToString());
        }
    }
}
